<div id="addUser" style="margin: 30px 0px 0px 50px;">
    <form action="" method="post">
        <?php echo validation_errors('<div class="errors">', '</div>'); ?>
        <p class="errors" ><?php echo $errors; ?></p>
        <div class="input-group col-md-4">
            <span class="input-group-addon"><i class="glyphicon glyphicon-list"></i></span>
            <input type="text" class="form-control" name="name" value="<?php echo $info['cate_name']; ?>" placeholder="Category Name">
        </div>
        <div class="add_user" style="margin-top: 15px;">
            <select name="category">
                <option value="0">--Category parent--</option>
                <?php if ($list_parent != NULL) { ?>
                    <?php foreach ($list_parent as $data) { ?>
                        <option
                            value="<?php echo $data['cate_id']; ?>" <?php if($info['cate_parent']==$data['cate_id']){
                            echo "selected='selected'";
                        } ?>><?php echo $data['cate_name']; ?></option>
                    <?php }
                } ?>
            </select>
        </div>
        <div class="add_user" style="margin-top: 15px;">
            <textarea cols="46" rows="6" name="description" placeholder="Description"><?php echo $info['cate_description']; ?></textarea>
        </div>
        <br/>
        <input type="submit" name="submit" class="btn btn-default" value="Insert">



    </form>
</div>